Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply transformations even if the shim is empty #4366

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

daxpedda
Copy link
Collaborator

Currently WBG does some transformations to replace internal instructions after all the post-processing is done. However, if no shim functions were generated, it was assuming that no instructions were used and moves on without the transformations. But with the reference-type transformations, some internal functions were used by some other internal functions! So the transformations is still needed even if no shim functions were generated.

This PR removes this optimizations and WBG now always does the instruction transformations.

Fixes #4365.

@daxpedda daxpedda merged commit e464ba3 into rustwasm:main Dec 19, 2024
67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import error for bindgen functions using Result without JsError
1 participant